from django.urls import path
from django.contrib.auth import views as auth_views

from . import views

app_name = 'user'

urlpatterns = [
    path('login_portal/', views.LoginPortal.as_view(), name='login_portal'),
    path('login/', views.LoginView.as_view(), name='login'),
    path('signup', views.SignUpView.as_view(), name='signup'),
    path('signup1/', views.SignUpSupplementInfomationView.as_view(),
         name='signup1'),
    path('signup2/', views.SignUpFinishWaittingRoomView.as_view(),
         name='signup2'),

    path('logout/', auth_views.LogoutView.as_view(), name="logout"),

    path('management/list', views.UserManagementCommonView.as_view(), name='management/list'),
    path('management/permission', views.UserManagementCommonView.as_view(), name='management/permission'),
    path('management/researchers-resumes', views.UserManagementCommonView.as_view(), name='management/researchers-resumes'),
    path('management/upload-researchers-resumes',
         views.ResearchersResumesBatchUploadHTMXView.as_view(),
         name="management/upload-researchers-resumes"),
    path('management/invite-code', views.InviteCodeListView.as_view(), name="management/invite-code"),

    path("<int:pk>/profile", views.UserPublicProfileView.as_view(), name="profile"),

    path("settings/profile", views.SettingsProfileUpdateView.as_view(), name="settings/profile"),
    path("settings/account", views.SettingsAccountUpdateView.as_view(), name="settings/account"),
    path("settings/resume", views.SettingsResumeManagementView.as_view(), name="settings/resume"),

    path('researchers', views.ResearcherListView.as_view(), name='researchers'),
]
